import {
  ChromeFilled,
  CrownFilled,
  SmileFilled,
  TabletFilled,
  BarsOutlined,
  MenuOutlined,
} from '@ant-design/icons';

export default {
  route: {
    path: '/',
    routes: [
      {
        path: '/home/config',
        name: '设置',
        icon: <BarsOutlined />,
        routes: [
          {
            path: '/home/config/index',
            name: '设置',
            routes: [
              {
                path: '/home/config/index',
                name: '核心设置',
                routes: [
                  {
                    path: '/home/config/index',

                    name: '站点设置',
                  },
                  {
                    path: '/home/config/update',

                    name: '更新缓存',
                  },
                  {
                    path: '/home/config/website',

                    name: 'PC首页管理',
                  },
                  {
                    path: '/home/config/nav',

                    name: '导航设置',
                  },
                  {
                    path: '/home/config/menu',
                    name: '菜单管理',
                  },
                ],
              },
            ],
          },
          {
            path: '/home/config/admin',
            name: '管理',

            routes: [
              {
                path: '/home/config/admin',
                name: '管理员',
                routes: [
                  {
                    path: '/home/config/admin1',
                    icon: <CrownFilled />,
                    name: '管理员管理',
                  },
                  {
                    path: '/home/config/role',
                    icon: <CrownFilled />,
                    name: '角色管理',
                  },
                ],
              },
            ],
          },
        ],
      },
      {
        path: '/home/business',
        name: '商业',
        icon: <CrownFilled />,
        access: 'canAdmin',
        routes: [
          {
            path: '/home/business',
            name: '商业',
            routes: [
              {
                path: 'buildIndex',
                name: '写字楼',
                icon: <CrownFilled />,
                routes: [
                  {
                    path: 'buildManagement',
                    name: '出售管理',
                  },
                  {
                    path: 'buildRental',
                    name: '出租管理',
                  },
                ],
              },
              {
                path: 'shopIndex',
                name: '商铺',
                icon: <CrownFilled />,
                routes: [
                  {
                    path: 'shopManagement',
                    name: '出售管理',
                  },
                  {
                    path: 'shopRental',
                    name: '出租管理',
                  },
                ],
              },
            ],
          },
        ],
      },
      {
        path: '/home/used',
        name: '二手/出租',
        icon: <CrownFilled />,
        access: 'canAdmin',

        routes: [
          {
            path: '/home/used',
            name: '小区管理',
            icon: <CrownFilled />,
            routes: [
              {
                path: '/home/used',
                name: '小区管理',
                icon: <CrownFilled />,
                routes: [
                  {
                    path: '/home/used/used',
                    name: '小区管理',
                  },
                ],
              },
              {
                path: '/home/used/sendHandIndex',
                name: '二手房',
                icon: <CrownFilled />,
                routes: [
                  {
                    path: '/home/used/houseManament',
                    name: '房源管理',
                  },
                  {
                    path: '/home/used/addHouse',
                    name: '添加房源',
                  },
                ],
              },
              {
                path: '/home/used/rentalHouseIndex',
                name: '出租房',
                icon: <CrownFilled />,
                routes: [
                  {
                    path: '/home/used/rentalHouse',
                    name: '房源管理',
                  },
                  {
                    path: '/home/used/addRental',
                    name: '添加房源',
                  },
                ],
              },
            ],
          },
        ],
      },
      {
        name: '楼盘',
        icon: <TabletFilled />,
        path: '/home/loupan',
        component: './ListTableList',
        routes: [
          {
            path: '/home/loupan',
            name: '楼盘',
            icon: <CrownFilled />,
            routes: [
              {
                path: '/home/loupan',
                name: '楼盘管理',
                icon: <CrownFilled />,

                routes: [
                  {
                    path: '/home/loupan/houseList',
                    name: '楼盘列表',
                    icon: <CrownFilled />,
                  },
                  {
                    path: '/home/loupan/addHouse',
                    name: '添加楼盘',
                    icon: <CrownFilled />,
                  },
                ],
              },
              {
                path: '/home/loupan/list',
                name: '开发商',
                icon: <CrownFilled />,

                routes: [
                  {
                    path: 'index',
                    name: '开发商列表',
                    icon: <CrownFilled />,
                  },
                ],
              },
              {
                path: '/home/loupan/team',
                name: '团购管理',
                icon: <CrownFilled />,
                routes: [
                  {
                    path: '/home/loupan/team/teamList',
                    name: '添加团购',
                    icon: <CrownFilled />,
                  },
                  {
                    path: '/home/loupan/team/addTeam',
                    name: '团购列表',
                    icon: <CrownFilled />,
                  },
                ],
              },
            ],
          },
        ],
      },
      {
        path: '/home/serve',
        name: '客服',
        icon: <CrownFilled />,
        access: 'canAdmin',

        routes: [
          {
            path: '/home/serve/message',
            name: '客服信息总览',
            icon: <CrownFilled />,
          },
          {
            path: '/home/serve/kefu',
            name: '客服列表',
            icon: <MenuOutlined />,
          },
          {
            path: '/home/serve/session',
            name: '会话管理',
            icon: <CrownFilled />,
            routes: [
              {
                path: '/home/serve',
                name: '会话管理',
                icon: <CrownFilled />,
                routes: [
                  {
                    path: '/home/serve/list',
                    name: '游客列表',
                    icon: <MenuOutlined />,
                  },
                  {
                    path: '/home/serve/record',
                    name: '服务记录',
                    icon: <MenuOutlined />,
                  },
                  {
                    path: '/home/serve/chat',
                    name: '聊天记录',
                    icon: <MenuOutlined />,
                  },
                  {
                    path: '/home/serve/im',
                    name: 'im聊天',
                    icon: <MenuOutlined />,
                  },
                ],
              },
            ],
          },
        ],
      },
    ],
  },
  location: {
    pathname: '/',
  },
};
